﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAO
{
    public class BackupResto : DataAccess
    {
        public bool Backup()
        {
            return UpdateDeleteData("BACKUP DATABASE QuanLyKho TO DISK='E:\\QuanLyKho.bak'", System.Data.CommandType.Text);
        }
        public bool ReSto()
        {
            return UpdateDeleteData("USE master RESTORE DATABASE QuanLyKho FROM DISK='E:\\QuanLyKho.bak'", System.Data.CommandType.Text);
        }
    }
}
